package cn.xenosp.server.module.operateLog.service.impl;

import cn.xenosp.server.common.tools.ObjectConvert;
import cn.xenosp.server.module.operateLog.entity.SysOperateLogVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.xenosp.server.module.operateLog.entity.SysOperateLog;
import cn.xenosp.server.module.operateLog.service.SysOperateLogService;
import cn.xenosp.server.module.operateLog.mapper.SysOperateLogMapper;
import org.springframework.stereotype.Service;

/**
* @author TongHui
* @description 针对表【sys_operate_log(操作日志记录)】的数据库操作Service实现
* @createDate 2025-01-11 15:39:38
*/
@Service
public class SysOperateLogServiceImpl extends ServiceImpl<SysOperateLogMapper, SysOperateLog>
    implements SysOperateLogService{

    @Override
    public IPage getPage(SysOperateLogVO operateLogVO) {
        SysOperateLog operateLog = new SysOperateLog();
        Page page = new Page(operateLogVO.getPage(), operateLogVO.getLimit());
        ObjectConvert.copyVoToEntity(operateLogVO,operateLog);
        return baseMapper.page(page,operateLog);
    }
}




